package com.srit.identify.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Getter
@Setter
@Table(name = "userInfo")
@Entity
public class UserInfo {

    @Id
    private String userId;


    private String condTime;

    private String userCertification;


    public boolean verify(){
        return !StringUtils.isEmpty(userId) && !StringUtils.isEmpty(condTime) && !StringUtils.isEmpty(userCertification);
    }

}
